<!DOCTYPE html>
<html>
<head>
    <title>配送订单表</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../css/main.css">
    <link rel="stylesheet" href="https://unpkg.com/element-ui@1.4.1/lib/theme-default/index.css">
    <script src="../../libs/jquery.min.js"></script>
    <script src="../../plugins/layer/layer.js"></script>
    <script src="../../libs/bootstrap.min.js"></script>
    <script src="../../libs/vue.min.js"></script>
    <script src="../../libs/utilsjs.js"></script>
    <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../js/common.js"></script>
    <script src="https://unpkg.com/element-ui@1.4.1/lib/index.js "></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <!--<div class="grid-btn">
            <a v-if="hasPermission('psorder:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a v-if="hasPermission('psorder:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a v-if="hasPermission('psorder:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>-->
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.branchCompany"
                       @click="BranchCompanySelect"
                       placeholder="所属分公司"/>
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.netPoint"
                       @click="BranchPointSelect"
                       placeholder="所属网点"/>
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.driverName" placeholder="司机姓名"/>
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.userName" placeholder="用户姓名"/>
            </div>
            <div class="form-group col-sm-3">
                <el-date-picker v-model="q.startCreateTime" type="date"
                                placeholder="下单时间--起始"></el-date-picker>
            </div>
            <div class="form-group col-sm-3">
                <el-date-picker v-model="q.endCreateTime" type="date"
                                placeholder="下单时间--截止"></el-date-picker>
            </div>
            &nbsp;&nbsp;
            <a class="btn btn-primary" @click="query">查询</a>
            <a class="btn btn-primary" @click="empty">清空筛选</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal" style="width:1600px;">
            <div class="form-group">
                <div class="col-sm-1 control-label">订单号</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.ordernum" placeholder="订单号"/>
                </div>
                <div class="col-sm-1 control-label">用户姓名</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.userName" placeholder="用户姓名"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">用户电话</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.userPhone" placeholder="用户电话"/>
                </div>
                <div class="col-sm-1 control-label">下单时间</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.createTime" placeholder="下单时间"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">接单司机姓名</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.driverName" placeholder="接单司机姓名"/>
                </div>
                <div class="col-sm-1 control-label">司机所属公司</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.branchCompany" placeholder="司机所属公司"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">司机所属网点</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.netPoint" placeholder="司机所属网点"/>
                </div>
                <div class="col-sm-1 control-label">接单司机电话</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.driverTel" placeholder="接单司机电话"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">收货人姓名</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.receiverName" placeholder="收货人姓名"/>
                </div>
                <div class="col-sm-1 control-label">收货人电话</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.receiverPhone" placeholder="收货人电话"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">接收订单时间</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.receiveTime" placeholder="接收订单时间"/>
                </div>
                <div class="col-sm-1 control-label">完成订单时间</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.completeTime" placeholder="完成订单时间"/>
                </div>
            </div>



            <div class="form-group">
                <div class="col-sm-1 control-label">起点名称</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.startName" placeholder="起点名称"/>
                </div>
                <div class="col-sm-1 control-label">起点经度</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.startLng" placeholder="起点经度"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">起点纬度</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.startLat" placeholder="起点纬度"/>
                </div>
                <div class="col-sm-1 control-label">终点名称</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.endName" placeholder="终点名称"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">终点经度</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.endLng" placeholder="终点经度"/>
                </div>
                <div class="col-sm-1 control-label">终点纬度</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.endLat" placeholder="终点纬度"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">当前地址名称</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.curAddress" placeholder="当前地址名称"/>
                </div>
                <div class="col-sm-1 control-label">当前经度</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.curLng" placeholder="当前经度"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">当前纬度</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.curLat" placeholder="当前纬度"/>
                </div>
                <div class="col-sm-1 control-label">行车距离(理论)</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.distance" placeholder="行车距离(理论)"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">实际行驶距离</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.realdistance" placeholder="实际行驶距离"/>
                </div>
                <div class="col-sm-1 control-label">订单状态</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.orderStatus"
                           placeholder="订单状态"/>
                </div>
            </div>


            <div class="form-group">
                <div class="col-sm-1 control-label">订单金额</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.orderMoney" placeholder="订单金额"/>
                </div>
                <div class="col-sm-1 control-label">支付方式</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.payType" placeholder="支付方式"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">支付时间</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.payTime" placeholder="支付时间"/>
                </div>
                <div class="col-sm-1 control-label">实际支付金额</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.payRealymoney" placeholder="实际支付金额"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">额外费用</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.extraCharge" placeholder="额外费用"/>
                </div>
                <div class="col-sm-1 control-label">额外费用说明</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.extraChargeNote" placeholder="额外费用说明"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-1 control-label">支付返回的订单号</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.payOrder" placeholder="支付返回的订单号"/>
                </div>
                <div class="col-sm-1 control-label">支付状态</div>
                <div class="col-sm-4">
                    <input type="text" class="form-control" v-model="psOrder.payStatus" placeholder="支付状态"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-5 control-label"></div>
                &nbsp;&nbsp;
                <input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<!----------------------------分公司选择窗口------------------------------------->
<div id="windowBranchCompany" hidden="true">
    <div id="rrappBranchCompany">
        <div v-show="showList">
            <div class="grid-btn">
                <a class="btn btn-primary btn-sm" id="addBranchCompany">确定</a>
                <a class="btn btn-primary btn-sm" id="closeBranchCompany">关闭</a>
            </div>
            <table id="jqGridBranchCompany"></table>
            <div id="jqGridPagerBranchCompany"></div>
        </div>
    </div>
</div>

<!----------------------------网点选择窗口------------------------------------->
<div id="windowNetPoint" hidden="true">
    <div id="rrappNetPoint">
        <div v-show="showList">
            <div class="grid-btn">
                <a class="btn btn-primary btn-sm" id="addNetPoint">确定</a>
                <a class="btn btn-primary btn-sm" id="closeNetPoint">关闭</a>
            </div>
            <table id="jqGridNetPoint"></table>
            <div id="jqGridPagerNetPoint"></div>
        </div>
    </div>
</div>

<script src="../../js/modules/psorder/psorder.js"></script>
</body>
</html>